package edu.cmu.cs.stage3.alice.core.question.list;

import edu.cmu.cs.stage3.alice.core.property.NumberProperty;

public class ItemAtIndex extends ListObjectQuestion {
	public final NumberProperty index = new NumberProperty( this, "index", new Integer( -1 ) );
	//Rem @Override
	public Object getValue( edu.cmu.cs.stage3.alice.core.List listValue ) {
		int i = index.intValue();
		return listValue.itemValueAtIndex( i );
	}
}